package fangzhiyi.business;

/**
 * @author fangzhiyi
 * @version 1.0
 * @date 2025/3/20 15:59
 * @description
 */
public class CommonEmp extends Employee{
    public double monthPrice;

    public double getMonthPrice() {
        return monthPrice;
    }

    public CommonEmp() {
        super();
    }

    public CommonEmp(String name, String id, double monthPrice) {
        super(name, id);
        this.monthPrice = monthPrice;
    }

    @Override
    public double price() {
        return monthPrice * 12;
    }
}
